#!/usr/bin/python

import sys
import Lunmgr

#devs = Lunmgr.DoDevHash()
#
#htls = Lunmgr.DoHTLHash()
#
mpaths = Lunmgr.DoMpathHash()

mount_pts = Lunmgr.ReadDevtable()

#print devs
#print htls
#print mpaths

for dir in ','.join(sys.argv[1:]).split(','):
    if dir in mount_pts.keys():
        uuid = mount_pts[dir]
        if uuid in mpaths.keys():
            print 'mount', mpaths[uuid] + 'p1', dir
        else:
            print dir, 'is not mount in this rack'
